﻿using IQIGame.Onigao.Framework;
using IQIGame.Onigao.Game;

namespace IQIGame.Onigao.GamePlay
{
    public class ProcedureReset : ProcedureBase
    {
        public override void OnEnter()
        {
            NetManager.Instance.DestoryAllSession();
            NetTipController.Instance.Clear();
            NetLockModule.Instance.ClearAll();
            NoticeModule.ClearAll();
            ManagerCenter.UI.CloseAllWindow(false);
            ManagerCenter.Entity.HideAll();
            FrameworkEntry.Instance.GlobalTimeScale = 1;
            ChangeState<ProcedureLogin>();
        }

        public override void OnLeave()
        {

        }

        public override void OnUpdate(float deltaTime, float unscaledDeltaTime)
        {

        }
    }
}
